/**
 * \file   common_defs.h
 *         common definition kept on a single file.
 * \author Manuel Leiva , Esteban Zuñiga, Jorge Hidalgo
 * \date   2012.03

 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 *
 * $Id: firfilter.h $
 */

#ifndef ROM_H
#define ROM_H

#define MAX_FIR_ORDER  32
#define INIT_IIR_ORDER 8
#define MAX_IIR_ORDER  32
#define SAMPLING_FREQ  44100.0

#define INIT_FREC_C0   1000 /* Hz */
#define INIT_FREC_C1   3000 /* Hz */
#define FIR_MIN_BAND   500 /* Hz */
#define FREC_ANG_MIN FIR_MIN_BAND * (2 * M_PI ) / SAMPLING_FREQ /* rad/s */

typedef enum{
    FIR_COEFF_LOW,
    FIR_COEFF_HIGH,
    FIR_COEFF_BAND,
    FIR_COEFF_STOP
} eFirType;

typedef enum{
    FIR_COEFF_WIND_RECT,
    FIR_COEFF_WIND_HANN,
    FIR_COEFF_WIND_HAMM,
    FIR_COEFF_WIND_BLACK
} eFirWindType;

typedef enum{
    IIR_COEFF_LOW,
    IIR_COEFF_HIGH,
    IIR_COEFF_BAND,
    IIR_COEFF_STOP
} eIirType;

#endif // ROM_H
